package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学分记录对象 credit_record
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
public class CreditRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long activityId;

    /** 报名ID */
    @Excel(name = "报名ID")
    private Long enrollmentId;

    /** 学分值 */
    @Excel(name = "学分值")
    private BigDecimal creditValue;

    /** 学分类型（0活动学分 1其他学分） */
    @Excel(name = "学分类型", readConverterExp = "0=活动学分,1=其他学分")
    private String creditType;

    /** 状态（0待审核 1已通过 2已拒绝） */
    @Excel(name = "状态", readConverterExp = "0=待审核,1=已通过,2=已拒绝")
    private String creditStatus;

    /** 学分描述 */
    @Excel(name = "学分描述")
    private String description;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approveBy;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setEnrollmentId(Long enrollmentId) 
    {
        this.enrollmentId = enrollmentId;
    }

    public Long getEnrollmentId() 
    {
        return enrollmentId;
    }
    public void setCreditValue(BigDecimal creditValue) 
    {
        this.creditValue = creditValue;
    }

    public BigDecimal getCreditValue() 
    {
        return creditValue;
    }
    public void setCreditType(String creditType) 
    {
        this.creditType = creditType;
    }

    public String getCreditType() 
    {
        return creditType;
    }
    public void setCreditStatus(String creditStatus) 
    {
        this.creditStatus = creditStatus;
    }

    public String getCreditStatus() 
    {
        return creditStatus;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setApproveBy(String approveBy) 
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy() 
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("studentId", getStudentId())
            .append("activityId", getActivityId())
            .append("enrollmentId", getEnrollmentId())
            .append("creditValue", getCreditValue())
            .append("creditType", getCreditType())
            .append("creditStatus", getCreditStatus())
            .append("description", getDescription())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
